 <bc:ExQUERY x:Class="SLS.Presentation.DetailGTARQueryCond" 
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                xmlns:exc="clr-namespace:SLS.Controls;assembly=CLSControls" 
                xmlns:bc="clr-namespace:SLS.Base;assembly=CLSBase"
                x:Name="Container" 
                ToolTip="{Binding DisplayName}"
                xmlns:meffed="http:\\www.codeplex.com\MEFedMVVM"            
                meffed:ViewModelLocator.ViewModel="DetailGTARQueryCondViewModel"
            >
    <bc:ExQUERY.Resources> 
    <CollectionViewSource   x:Key="vwBaseQueryCond"
                             Source="{Binding Path=ViewDataSet.SetUQ.GTARQueryCond}"/>
    </bc:ExQUERY.Resources>  
          <Grid Name="MasterGrid"
          VerticalAlignment="Top"
          HorizontalAlignment="Stretch"
          Width="{Binding ElementName=Container,Path=ActualWidth}">   
    <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />  
        </Grid.RowDefinitions>    
        <StackPanel  Grid.Row="0">
            <WrapPanel>
                    <Button Name="btnRefreshQueryCond"
                            Width="Auto"
                            Height="Auto"
                            VerticalAlignment="Stretch"
                            Click="btnRefreshQueryCond_Click">Refresh</Button>
                    <Button Name="btnQuery"
                            Width="Auto"
                            Height="Auto"
                            VerticalAlignment="Stretch"
                            Click="btnQuery_Click">Query</Button>
                </WrapPanel>           
            <WrapPanel>
                <exc:NMICD Name="NMICD"> 
                </exc:NMICD>
        </WrapPanel>
          <exc:FilteringDataGrid  
                         Grid.Row="1"
                         Name="MainGridData"
                          ItemsSource="{Binding Source={StaticResource ResourceKey=vwBaseQueryCond}}"
                          AutoGenerateColumns="False"
                          IsSynchronizedWithCurrentItem="True"
                          SelectionChanged="ItemsControls_SelectionChanged"
                          SelectionMode="Extended"
                          Height="100"
                          MaxHeight="400"
                          ColumnWidth="SizeToHeader"
                          SelectionUnit="FullRow">
                            <DataGrid.Columns>
                <DataGridTextColumn x:Name="QUERYTYPEColumn_QD"
                                    Binding="{Binding Path=QUERYTYPE}"
                                    Header="QUERYTYPE"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="CONDTYPEColumn_QD"
                                    Binding="{Binding Path=CONDTYPE}"
                                    Header="CONDTYPE"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="REASON1Column_QD"
                                    Binding="{Binding Path=REASON1}"
                                    Header="REASON1"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="FKEYINSTANCETABLEColumn_QD"
                                    Binding="{Binding Path=FKEYINSTANCETABLE}"
                                    Header="FKEYINSTANCETABLE"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="KEYINSTANCETABLEColumn_QD"
                                    Binding="{Binding Path=KEYINSTANCETABLE}"
                                    Header="KEYINSTANCETABLE"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="POSITIONIDColumn_QD"
                                    Binding="{Binding Path=POSITIONID}"
                                    Header="POSITIONID"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="PROCESSPOINTKEYColumn_QD"
                                    Binding="{Binding Path=PROCESSPOINTKEY}"
                                    Header="PROCESSPOINTKEY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="GOODSASSEMBLEPOINTTYPEKEYColumn_QD"
                                    Binding="{Binding Path=GOODSASSEMBLEPOINTTYPEKEY}"
                                    Header="GOODSASSEMBLEPOINTTYPEKEY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="GOODSASSEMBLEPOINTKEYColumn_QD"
                                    Binding="{Binding Path=GOODSASSEMBLEPOINTKEY}"
                                    Header="GOODSASSEMBLEPOINTKEY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="GOODSMOVEMENTTYPEKEYColumn_QD"
                                    Binding="{Binding Path=GOODSMOVEMENTTYPEKEY}"
                                    Header="GOODSMOVEMENTTYPEKEY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="SKEYINSTANCETABLEColumn_QD"
                                    Binding="{Binding Path=SKEYINSTANCETABLE}"
                                    Header="SKEYINSTANCETABLE"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="SKEYDEFTYPEColumn_QD"
                                    Binding="{Binding Path=SKEYDEFTYPE}"
                                    Header="SKEYDEFTYPE"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="SGOODSTYPEKEYColumn_QD"
                                    Binding="{Binding Path=SGOODSTYPEKEY}"
                                    Header="SGOODSTYPEKEY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="SGOODSTYPEKEYDEFKEYColumn_QD"
                                    Binding="{Binding Path=SGOODSTYPEKEYDEFKEY}"
                                    Header="SGOODSTYPEKEYDEFKEY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="SMULTIKEYColumn_QD"
                                    Binding="{Binding Path=SMULTIKEY}"
                                    Header="SMULTIKEY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="SFOREIGNKEYColumn_QD"
                                    Binding="{Binding Path=SFOREIGNKEY}"
                                    Header="SFOREIGNKEY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="SGOODSKEYGENERATIONColumn_QD"
                                    Binding="{Binding Path=SGOODSKEYGENERATION}"
                                    Header="SGOODSKEYGENERATION"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="INQUANTITYColumn_QD"
                                    Binding="{Binding Path=INQUANTITY}"
                                    Header="INQUANTITY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="INUMColumn_QD"
                                    Binding="{Binding Path=INUM}"
                                    Header="INUM"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="QUANTITYColumn_QD"
                                    Binding="{Binding Path=QUANTITY}"
                                    Header="QUANTITY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="UMColumn_QD"
                                    Binding="{Binding Path=UM}"
                                    Header="UM"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="LONGDESColumn_QD"
                                    Binding="{Binding Path=LONGDES}"
                                    Header="LONGDES"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="SDESColumn_QD"
                                    Binding="{Binding Path=SDES}"
                                    Header="SDES"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="LASTPOSITIONIDColumn_QD"
                                    Binding="{Binding Path=LASTPOSITIONID}"
                                    Header="LASTPOSITIONID"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="VALUECONTROLTYPEKEYColumn_QD"
                                    Binding="{Binding Path=VALUECONTROLTYPEKEY}"
                                    Header="VALUECONTROLTYPEKEY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="EXTENEDPROPERTYColumn_QD"
                                    Binding="{Binding Path=EXTENEDPROPERTY}"
                                    Header="EXTENEDPROPERTY"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="FRSTUSERColumn_QD"
                                    Binding="{Binding Path=FRSTUSER}"
                                    Header="FRSTUSER"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="FRSTDATEColumn_QD"
                                    Binding="{Binding Path=FRSTDATE}"
                                    Header="FRSTDATE"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="LASTUSERColumn_QD"
                                    Binding="{Binding Path=LASTUSER}"
                                    Header="LASTUSER"
                                    Width="SizeToHeader" />
                <DataGridTextColumn x:Name="LASTDATEColumn_QD"
                                    Binding="{Binding Path=LASTDATE}"
                                    Header="LASTDATE"
                                    Width="SizeToHeader" />
            </DataGrid.Columns> 
             </exc:FilteringDataGrid> 
             </StackPanel>
            <GridSplitter Grid.Row="1"></GridSplitter>            
                 <ScrollViewer 
                       Grid.Row="2" >
                   <WrapPanel  >                          
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="QUERYTYPE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="QUERYTYPETextBox"
                                                                Text="{Binding Path=QUERYTYPE,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="CONDTYPE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="CONDTYPETextBox"
                                                                Text="{Binding Path=CONDTYPE,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="REASON1:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="REASON1TextBox"
                                                                Text="{Binding Path=REASON1,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="FKEYINSTANCETABLE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="FKEYINSTANCETABLETextBox"
                                                                Text="{Binding Path=FKEYINSTANCETABLE,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="KEYINSTANCETABLE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="KEYINSTANCETABLETextBox"
                                                                Text="{Binding Path=KEYINSTANCETABLE,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="POSITIONID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="POSITIONIDTextBox"
                                                                Text="{Binding Path=POSITIONID,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="PROCESSPOINTKEY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="PROCESSPOINTKEYTextBox"
                                                                Text="{Binding Path=PROCESSPOINTKEY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="GOODSASSEMBLEPOINTTYPEKEY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="GOODSASSEMBLEPOINTTYPEKEYTextBox"
                                                                Text="{Binding Path=GOODSASSEMBLEPOINTTYPEKEY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="GOODSASSEMBLEPOINTKEY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="GOODSASSEMBLEPOINTKEYTextBox"
                                                                Text="{Binding Path=GOODSASSEMBLEPOINTKEY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="GOODSMOVEMENTTYPEKEY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="GOODSMOVEMENTTYPEKEYTextBox"
                                                                Text="{Binding Path=GOODSMOVEMENTTYPEKEY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="SKEYINSTANCETABLE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="SKEYINSTANCETABLETextBox"
                                                                Text="{Binding Path=SKEYINSTANCETABLE,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="SKEYDEFTYPE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="SKEYDEFTYPETextBox"
                                                                Text="{Binding Path=SKEYDEFTYPE,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="SGOODSTYPEKEY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="SGOODSTYPEKEYTextBox"
                                                                Text="{Binding Path=SGOODSTYPEKEY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="SGOODSTYPEKEYDEFKEY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="SGOODSTYPEKEYDEFKEYTextBox"
                                                                Text="{Binding Path=SGOODSTYPEKEYDEFKEY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="SMULTIKEY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="SMULTIKEYTextBox"
                                                                Text="{Binding Path=SMULTIKEY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="SFOREIGNKEY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="SFOREIGNKEYTextBox"
                                                                Text="{Binding Path=SFOREIGNKEY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="SGOODSKEYGENERATION:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="SGOODSKEYGENERATIONTextBox"
                                                                Text="{Binding Path=SGOODSKEYGENERATION,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="INQUANTITY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="INQUANTITYTextBox"
                                                                Text="{Binding Path=INQUANTITY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="INUM:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="INUMTextBox"
                                                                Text="{Binding Path=INUM,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="QUANTITY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="QUANTITYTextBox"
                                                                Text="{Binding Path=QUANTITY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="UM:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="UMTextBox"
                                                                Text="{Binding Path=UM,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="LONGDES:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="LONGDESTextBox"
                                                                Text="{Binding Path=LONGDES,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="SDES:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="SDESTextBox"
                                                                Text="{Binding Path=SDES,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="LASTPOSITIONID:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="LASTPOSITIONIDTextBox"
                                                                Text="{Binding Path=LASTPOSITIONID,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="VALUECONTROLTYPEKEY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="VALUECONTROLTYPEKEYTextBox"
                                                                Text="{Binding Path=VALUECONTROLTYPEKEY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="EXTENEDPROPERTY:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="EXTENEDPROPERTYTextBox"
                                                                Text="{Binding Path=EXTENEDPROPERTY,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="FRSTUSER:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="FRSTUSERTextBox"
                                                                Text="{Binding Path=FRSTUSER,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="FRSTDATE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                            <DatePicker Grid.Column="1" Grid.Row="0" Height="25" 
                            HorizontalAlignment="Left" Margin="3" 
                            SelectedDate="{Binding Path=FRSTDATE, 
                            Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" 
                            VerticalAlignment="Center" Width="115" />
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="LASTUSER:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                                                                <TextBox Grid.Column="1"
                                                                Grid.Row="0"
                                                                Height="23"
                                                                HorizontalAlignment="Left"
                                                                Margin="3"
                                                                Name="LASTUSERTextBox"
                                                                Text="{Binding Path=LASTUSER,Source={StaticResource ResourceKey=vwBaseQueryCond},   Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}"
                                                                VerticalAlignment="Center"
                                                                Width="120" />
                                                                
                        </Grid>
                    </Grid> 
                        <Grid>
                        <Grid HorizontalAlignment="Left" Margin="0,0,0,0"  VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="LASTDATE:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" 
                            VerticalAlignment="Center" />
                            <DatePicker Grid.Column="1" Grid.Row="0" Height="25" 
                            HorizontalAlignment="Left" Margin="3" 
                            SelectedDate="{Binding Path=LASTDATE, 
                            Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" 
                            VerticalAlignment="Center" Width="115" />
                        </Grid>
                    </Grid> 
                    </WrapPanel>
                     </ScrollViewer>  
    </Grid>
</bc:ExQUERY>
 
 
